package com.igroupes.ovineherd.model.Style;

import cn.hutool.json.JSONObject;
import com.igroupes.ovineherd.model.enums.FormKey;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

@EqualsAndHashCode(callSuper = true)
@Slf4j
@Data
@ToString(callSuper=true)
public class IdCardStyle extends InputStyle {

    protected IdCardStyle(){
        super();
    }
    public IdCardStyle(String label, Object value, Boolean required, JSONObject validations, JSONObject validationErrors) {
        super(label, value,required);
        this.type = FormKey.PHONE.getCode();
        this.validations = validations;
        this.validationErrors = validationErrors;
    }

    @Override
    public Boolean verify(Object o) {
        super.verify(o);
        return true;
    }
}
